package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_badge_upgrade",autoSave = true,uploadCk = true,desc = "勋章等级提升日志")
public class LogBadgeUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(isIndex = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "勋章类型")
    private int badgeType;
    @FieldTypeAnnotation(desc = "旧勋章id")
    private int oldBadgeId;
    @FieldTypeAnnotation(desc = "新勋章id")
    private int newBadgeId;

    public LogBadgeUpgrade(long userId, int badgeType, int oldBadgeId, int newBadgeId, Date time) {
        this.userId = userId;
        this.badgeType = badgeType;
        this.oldBadgeId = oldBadgeId;
        this.newBadgeId = newBadgeId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getBadgeType() {
        return badgeType;
    }

    public void setBadgeType(int badgeType) {
        this.badgeType = badgeType;
    }

    public int getOldBadgeId() {
        return oldBadgeId;
    }

    public void setOldBadgeId(int oldBadgeId) {
        this.oldBadgeId = oldBadgeId;
    }

    public int getNewBadgeId() {
        return newBadgeId;
    }

    public void setNewBadgeId(int newBadgeId) {
        this.newBadgeId = newBadgeId;
    }


}
